Option Strict On
Option Explicit On 

Public Class UPresentation
    Inherits System.Windows.Forms.UserControl

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents chkDisplayGrid As System.Windows.Forms.CheckBox
    Friend WithEvents chkDisplayRulers As System.Windows.Forms.CheckBox
    Friend WithEvents chkLocked As System.Windows.Forms.CheckBox
    Friend WithEvents chkSnapToGrid As System.Windows.Forms.CheckBox
    Friend WithEvents gbDesign As System.Windows.Forms.GroupBox
    Friend WithEvents cboStartupTable As System.Windows.Forms.ComboBox
    Friend WithEvents lblStartupTable As System.Windows.Forms.Label
    Friend WithEvents nudGridSizeWidth As System.Windows.Forms.NumericUpDown
    Friend WithEvents nudGridSizeHeight As System.Windows.Forms.NumericUpDown
    Friend WithEvents lblGridSizeWidth As System.Windows.Forms.Label
    Friend WithEvents lblGridSizeHeight As System.Windows.Forms.Label
    Friend WithEvents cboStartMode As System.Windows.Forms.ComboBox
    Friend WithEvents lblStartMode As System.Windows.Forms.Label
    Friend WithEvents cboRightToLeft As System.Windows.Forms.ComboBox
    Friend WithEvents lblRightToLeft As System.Windows.Forms.Label
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(UPresentation))
        Me.chkDisplayGrid = New System.Windows.Forms.CheckBox
        Me.chkDisplayRulers = New System.Windows.Forms.CheckBox
        Me.chkLocked = New System.Windows.Forms.CheckBox
        Me.chkSnapToGrid = New System.Windows.Forms.CheckBox
        Me.gbDesign = New System.Windows.Forms.GroupBox
        Me.nudGridSizeWidth = New System.Windows.Forms.NumericUpDown
        Me.nudGridSizeHeight = New System.Windows.Forms.NumericUpDown
        Me.lblGridSizeWidth = New System.Windows.Forms.Label
        Me.lblGridSizeHeight = New System.Windows.Forms.Label
        Me.cboStartupTable = New System.Windows.Forms.ComboBox
        Me.lblStartupTable = New System.Windows.Forms.Label
        Me.cboStartMode = New System.Windows.Forms.ComboBox
        Me.lblStartMode = New System.Windows.Forms.Label
        Me.cboRightToLeft = New System.Windows.Forms.ComboBox
        Me.lblRightToLeft = New System.Windows.Forms.Label
        Me.gbDesign.SuspendLayout()
        CType(Me.nudGridSizeWidth, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.nudGridSizeHeight, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'chkDisplayGrid
        '
        Me.chkDisplayGrid.AccessibleDescription = resources.GetString("chkDisplayGrid.AccessibleDescription")
        Me.chkDisplayGrid.AccessibleName = resources.GetString("chkDisplayGrid.AccessibleName")
        Me.chkDisplayGrid.Anchor = CType(resources.GetObject("chkDisplayGrid.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.chkDisplayGrid.Appearance = CType(resources.GetObject("chkDisplayGrid.Appearance"), System.Windows.Forms.Appearance)
        Me.chkDisplayGrid.BackgroundImage = CType(resources.GetObject("chkDisplayGrid.BackgroundImage"), System.Drawing.Image)
        Me.chkDisplayGrid.CheckAlign = CType(resources.GetObject("chkDisplayGrid.CheckAlign"), System.Drawing.ContentAlignment)
        Me.chkDisplayGrid.Dock = CType(resources.GetObject("chkDisplayGrid.Dock"), System.Windows.Forms.DockStyle)
        Me.chkDisplayGrid.Enabled = CType(resources.GetObject("chkDisplayGrid.Enabled"), Boolean)
        Me.chkDisplayGrid.FlatStyle = CType(resources.GetObject("chkDisplayGrid.FlatStyle"), System.Windows.Forms.FlatStyle)
        Me.chkDisplayGrid.Font = CType(resources.GetObject("chkDisplayGrid.Font"), System.Drawing.Font)
        Me.chkDisplayGrid.Image = CType(resources.GetObject("chkDisplayGrid.Image"), System.Drawing.Image)
        Me.chkDisplayGrid.ImageAlign = CType(resources.GetObject("chkDisplayGrid.ImageAlign"), System.Drawing.ContentAlignment)
        Me.chkDisplayGrid.ImageIndex = CType(resources.GetObject("chkDisplayGrid.ImageIndex"), Integer)
        Me.chkDisplayGrid.ImeMode = CType(resources.GetObject("chkDisplayGrid.ImeMode"), System.Windows.Forms.ImeMode)
        Me.chkDisplayGrid.Location = CType(resources.GetObject("chkDisplayGrid.Location"), System.Drawing.Point)
        Me.chkDisplayGrid.Name = "chkDisplayGrid"
        Me.chkDisplayGrid.RightToLeft = CType(resources.GetObject("chkDisplayGrid.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.chkDisplayGrid.Size = CType(resources.GetObject("chkDisplayGrid.Size"), System.Drawing.Size)
        Me.chkDisplayGrid.TabIndex = CType(resources.GetObject("chkDisplayGrid.TabIndex"), Integer)
        Me.chkDisplayGrid.Text = resources.GetString("chkDisplayGrid.Text")
        Me.chkDisplayGrid.TextAlign = CType(resources.GetObject("chkDisplayGrid.TextAlign"), System.Drawing.ContentAlignment)
        Me.chkDisplayGrid.Visible = CType(resources.GetObject("chkDisplayGrid.Visible"), Boolean)
        '
        'chkDisplayRulers
        '
        Me.chkDisplayRulers.AccessibleDescription = resources.GetString("chkDisplayRulers.AccessibleDescription")
        Me.chkDisplayRulers.AccessibleName = resources.GetString("chkDisplayRulers.AccessibleName")
        Me.chkDisplayRulers.Anchor = CType(resources.GetObject("chkDisplayRulers.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.chkDisplayRulers.Appearance = CType(resources.GetObject("chkDisplayRulers.Appearance"), System.Windows.Forms.Appearance)
        Me.chkDisplayRulers.BackgroundImage = CType(resources.GetObject("chkDisplayRulers.BackgroundImage"), System.Drawing.Image)
        Me.chkDisplayRulers.CheckAlign = CType(resources.GetObject("chkDisplayRulers.CheckAlign"), System.Drawing.ContentAlignment)
        Me.chkDisplayRulers.Dock = CType(resources.GetObject("chkDisplayRulers.Dock"), System.Windows.Forms.DockStyle)
        Me.chkDisplayRulers.Enabled = CType(resources.GetObject("chkDisplayRulers.Enabled"), Boolean)
        Me.chkDisplayRulers.FlatStyle = CType(resources.GetObject("chkDisplayRulers.FlatStyle"), System.Windows.Forms.FlatStyle)
        Me.chkDisplayRulers.Font = CType(resources.GetObject("chkDisplayRulers.Font"), System.Drawing.Font)
        Me.chkDisplayRulers.Image = CType(resources.GetObject("chkDisplayRulers.Image"), System.Drawing.Image)
        Me.chkDisplayRulers.ImageAlign = CType(resources.GetObject("chkDisplayRulers.ImageAlign"), System.Drawing.ContentAlignment)
        Me.chkDisplayRulers.ImageIndex = CType(resources.GetObject("chkDisplayRulers.ImageIndex"), Integer)
        Me.chkDisplayRulers.ImeMode = CType(resources.GetObject("chkDisplayRulers.ImeMode"), System.Windows.Forms.ImeMode)
        Me.chkDisplayRulers.Location = CType(resources.GetObject("chkDisplayRulers.Location"), System.Drawing.Point)
        Me.chkDisplayRulers.Name = "chkDisplayRulers"
        Me.chkDisplayRulers.RightToLeft = CType(resources.GetObject("chkDisplayRulers.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.chkDisplayRulers.Size = CType(resources.GetObject("chkDisplayRulers.Size"), System.Drawing.Size)
        Me.chkDisplayRulers.TabIndex = CType(resources.GetObject("chkDisplayRulers.TabIndex"), Integer)
        Me.chkDisplayRulers.Text = resources.GetString("chkDisplayRulers.Text")
        Me.chkDisplayRulers.TextAlign = CType(resources.GetObject("chkDisplayRulers.TextAlign"), System.Drawing.ContentAlignment)
        Me.chkDisplayRulers.Visible = CType(resources.GetObject("chkDisplayRulers.Visible"), Boolean)
        '
        'chkLocked
        '
        Me.chkLocked.AccessibleDescription = resources.GetString("chkLocked.AccessibleDescription")
        Me.chkLocked.AccessibleName = resources.GetString("chkLocked.AccessibleName")
        Me.chkLocked.Anchor = CType(resources.GetObject("chkLocked.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.chkLocked.Appearance = CType(resources.GetObject("chkLocked.Appearance"), System.Windows.Forms.Appearance)
        Me.chkLocked.BackgroundImage = CType(resources.GetObject("chkLocked.BackgroundImage"), System.Drawing.Image)
        Me.chkLocked.CheckAlign = CType(resources.GetObject("chkLocked.CheckAlign"), System.Drawing.ContentAlignment)
        Me.chkLocked.Dock = CType(resources.GetObject("chkLocked.Dock"), System.Windows.Forms.DockStyle)
        Me.chkLocked.Enabled = CType(resources.GetObject("chkLocked.Enabled"), Boolean)
        Me.chkLocked.FlatStyle = CType(resources.GetObject("chkLocked.FlatStyle"), System.Windows.Forms.FlatStyle)
        Me.chkLocked.Font = CType(resources.GetObject("chkLocked.Font"), System.Drawing.Font)
        Me.chkLocked.Image = CType(resources.GetObject("chkLocked.Image"), System.Drawing.Image)
        Me.chkLocked.ImageAlign = CType(resources.GetObject("chkLocked.ImageAlign"), System.Drawing.ContentAlignment)
        Me.chkLocked.ImageIndex = CType(resources.GetObject("chkLocked.ImageIndex"), Integer)
        Me.chkLocked.ImeMode = CType(resources.GetObject("chkLocked.ImeMode"), System.Windows.Forms.ImeMode)
        Me.chkLocked.Location = CType(resources.GetObject("chkLocked.Location"), System.Drawing.Point)
        Me.chkLocked.Name = "chkLocked"
        Me.chkLocked.RightToLeft = CType(resources.GetObject("chkLocked.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.chkLocked.Size = CType(resources.GetObject("chkLocked.Size"), System.Drawing.Size)
        Me.chkLocked.TabIndex = CType(resources.GetObject("chkLocked.TabIndex"), Integer)
        Me.chkLocked.Text = resources.GetString("chkLocked.Text")
        Me.chkLocked.TextAlign = CType(resources.GetObject("chkLocked.TextAlign"), System.Drawing.ContentAlignment)
        Me.chkLocked.Visible = CType(resources.GetObject("chkLocked.Visible"), Boolean)
        '
        'chkSnapToGrid
        '
        Me.chkSnapToGrid.AccessibleDescription = resources.GetString("chkSnapToGrid.AccessibleDescription")
        Me.chkSnapToGrid.AccessibleName = resources.GetString("chkSnapToGrid.AccessibleName")
        Me.chkSnapToGrid.Anchor = CType(resources.GetObject("chkSnapToGrid.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.chkSnapToGrid.Appearance = CType(resources.GetObject("chkSnapToGrid.Appearance"), System.Windows.Forms.Appearance)
        Me.chkSnapToGrid.BackgroundImage = CType(resources.GetObject("chkSnapToGrid.BackgroundImage"), System.Drawing.Image)
        Me.chkSnapToGrid.CheckAlign = CType(resources.GetObject("chkSnapToGrid.CheckAlign"), System.Drawing.ContentAlignment)
        Me.chkSnapToGrid.Dock = CType(resources.GetObject("chkSnapToGrid.Dock"), System.Windows.Forms.DockStyle)
        Me.chkSnapToGrid.Enabled = CType(resources.GetObject("chkSnapToGrid.Enabled"), Boolean)
        Me.chkSnapToGrid.FlatStyle = CType(resources.GetObject("chkSnapToGrid.FlatStyle"), System.Windows.Forms.FlatStyle)
        Me.chkSnapToGrid.Font = CType(resources.GetObject("chkSnapToGrid.Font"), System.Drawing.Font)
        Me.chkSnapToGrid.Image = CType(resources.GetObject("chkSnapToGrid.Image"), System.Drawing.Image)
        Me.chkSnapToGrid.ImageAlign = CType(resources.GetObject("chkSnapToGrid.ImageAlign"), System.Drawing.ContentAlignment)
        Me.chkSnapToGrid.ImageIndex = CType(resources.GetObject("chkSnapToGrid.ImageIndex"), Integer)
        Me.chkSnapToGrid.ImeMode = CType(resources.GetObject("chkSnapToGrid.ImeMode"), System.Windows.Forms.ImeMode)
        Me.chkSnapToGrid.Location = CType(resources.GetObject("chkSnapToGrid.Location"), System.Drawing.Point)
        Me.chkSnapToGrid.Name = "chkSnapToGrid"
        Me.chkSnapToGrid.RightToLeft = CType(resources.GetObject("chkSnapToGrid.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.chkSnapToGrid.Size = CType(resources.GetObject("chkSnapToGrid.Size"), System.Drawing.Size)
        Me.chkSnapToGrid.TabIndex = CType(resources.GetObject("chkSnapToGrid.TabIndex"), Integer)
        Me.chkSnapToGrid.Text = resources.GetString("chkSnapToGrid.Text")
        Me.chkSnapToGrid.TextAlign = CType(resources.GetObject("chkSnapToGrid.TextAlign"), System.Drawing.ContentAlignment)
        Me.chkSnapToGrid.Visible = CType(resources.GetObject("chkSnapToGrid.Visible"), Boolean)
        '
        'gbDesign
        '
        Me.gbDesign.AccessibleDescription = resources.GetString("gbDesign.AccessibleDescription")
        Me.gbDesign.AccessibleName = resources.GetString("gbDesign.AccessibleName")
        Me.gbDesign.Anchor = CType(resources.GetObject("gbDesign.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.gbDesign.BackgroundImage = CType(resources.GetObject("gbDesign.BackgroundImage"), System.Drawing.Image)
        Me.gbDesign.Controls.Add(Me.nudGridSizeWidth)
        Me.gbDesign.Controls.Add(Me.nudGridSizeHeight)
        Me.gbDesign.Controls.Add(Me.lblGridSizeWidth)
        Me.gbDesign.Controls.Add(Me.lblGridSizeHeight)
        Me.gbDesign.Controls.Add(Me.chkDisplayRulers)
        Me.gbDesign.Controls.Add(Me.chkDisplayGrid)
        Me.gbDesign.Controls.Add(Me.chkLocked)
        Me.gbDesign.Controls.Add(Me.chkSnapToGrid)
        Me.gbDesign.Dock = CType(resources.GetObject("gbDesign.Dock"), System.Windows.Forms.DockStyle)
        Me.gbDesign.Enabled = CType(resources.GetObject("gbDesign.Enabled"), Boolean)
        Me.gbDesign.Font = CType(resources.GetObject("gbDesign.Font"), System.Drawing.Font)
        Me.gbDesign.ImeMode = CType(resources.GetObject("gbDesign.ImeMode"), System.Windows.Forms.ImeMode)
        Me.gbDesign.Location = CType(resources.GetObject("gbDesign.Location"), System.Drawing.Point)
        Me.gbDesign.Name = "gbDesign"
        Me.gbDesign.RightToLeft = CType(resources.GetObject("gbDesign.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.gbDesign.Size = CType(resources.GetObject("gbDesign.Size"), System.Drawing.Size)
        Me.gbDesign.TabIndex = CType(resources.GetObject("gbDesign.TabIndex"), Integer)
        Me.gbDesign.TabStop = False
        Me.gbDesign.Text = resources.GetString("gbDesign.Text")
        Me.gbDesign.Visible = CType(resources.GetObject("gbDesign.Visible"), Boolean)
        '
        'nudGridSizeWidth
        '
        Me.nudGridSizeWidth.AccessibleDescription = resources.GetString("nudGridSizeWidth.AccessibleDescription")
        Me.nudGridSizeWidth.AccessibleName = resources.GetString("nudGridSizeWidth.AccessibleName")
        Me.nudGridSizeWidth.Anchor = CType(resources.GetObject("nudGridSizeWidth.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.nudGridSizeWidth.Dock = CType(resources.GetObject("nudGridSizeWidth.Dock"), System.Windows.Forms.DockStyle)
        Me.nudGridSizeWidth.Enabled = CType(resources.GetObject("nudGridSizeWidth.Enabled"), Boolean)
        Me.nudGridSizeWidth.Font = CType(resources.GetObject("nudGridSizeWidth.Font"), System.Drawing.Font)
        Me.nudGridSizeWidth.ImeMode = CType(resources.GetObject("nudGridSizeWidth.ImeMode"), System.Windows.Forms.ImeMode)
        Me.nudGridSizeWidth.Location = CType(resources.GetObject("nudGridSizeWidth.Location"), System.Drawing.Point)
        Me.nudGridSizeWidth.Maximum = New Decimal(New Integer() {10000, 0, 0, 0})
        Me.nudGridSizeWidth.Name = "nudGridSizeWidth"
        Me.nudGridSizeWidth.RightToLeft = CType(resources.GetObject("nudGridSizeWidth.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.nudGridSizeWidth.Size = CType(resources.GetObject("nudGridSizeWidth.Size"), System.Drawing.Size)
        Me.nudGridSizeWidth.TabIndex = CType(resources.GetObject("nudGridSizeWidth.TabIndex"), Integer)
        Me.nudGridSizeWidth.TextAlign = CType(resources.GetObject("nudGridSizeWidth.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.nudGridSizeWidth.ThousandsSeparator = CType(resources.GetObject("nudGridSizeWidth.ThousandsSeparator"), Boolean)
        Me.nudGridSizeWidth.UpDownAlign = CType(resources.GetObject("nudGridSizeWidth.UpDownAlign"), System.Windows.Forms.LeftRightAlignment)
        Me.nudGridSizeWidth.Visible = CType(resources.GetObject("nudGridSizeWidth.Visible"), Boolean)
        '
        'nudGridSizeHeight
        '
        Me.nudGridSizeHeight.AccessibleDescription = resources.GetString("nudGridSizeHeight.AccessibleDescription")
        Me.nudGridSizeHeight.AccessibleName = resources.GetString("nudGridSizeHeight.AccessibleName")
        Me.nudGridSizeHeight.Anchor = CType(resources.GetObject("nudGridSizeHeight.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.nudGridSizeHeight.Dock = CType(resources.GetObject("nudGridSizeHeight.Dock"), System.Windows.Forms.DockStyle)
        Me.nudGridSizeHeight.Enabled = CType(resources.GetObject("nudGridSizeHeight.Enabled"), Boolean)
        Me.nudGridSizeHeight.Font = CType(resources.GetObject("nudGridSizeHeight.Font"), System.Drawing.Font)
        Me.nudGridSizeHeight.ImeMode = CType(resources.GetObject("nudGridSizeHeight.ImeMode"), System.Windows.Forms.ImeMode)
        Me.nudGridSizeHeight.Location = CType(resources.GetObject("nudGridSizeHeight.Location"), System.Drawing.Point)
        Me.nudGridSizeHeight.Maximum = New Decimal(New Integer() {10000, 0, 0, 0})
        Me.nudGridSizeHeight.Name = "nudGridSizeHeight"
        Me.nudGridSizeHeight.RightToLeft = CType(resources.GetObject("nudGridSizeHeight.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.nudGridSizeHeight.Size = CType(resources.GetObject("nudGridSizeHeight.Size"), System.Drawing.Size)
        Me.nudGridSizeHeight.TabIndex = CType(resources.GetObject("nudGridSizeHeight.TabIndex"), Integer)
        Me.nudGridSizeHeight.TextAlign = CType(resources.GetObject("nudGridSizeHeight.TextAlign"), System.Windows.Forms.HorizontalAlignment)
        Me.nudGridSizeHeight.ThousandsSeparator = CType(resources.GetObject("nudGridSizeHeight.ThousandsSeparator"), Boolean)
        Me.nudGridSizeHeight.UpDownAlign = CType(resources.GetObject("nudGridSizeHeight.UpDownAlign"), System.Windows.Forms.LeftRightAlignment)
        Me.nudGridSizeHeight.Visible = CType(resources.GetObject("nudGridSizeHeight.Visible"), Boolean)
        '
        'lblGridSizeWidth
        '
        Me.lblGridSizeWidth.AccessibleDescription = resources.GetString("lblGridSizeWidth.AccessibleDescription")
        Me.lblGridSizeWidth.AccessibleName = resources.GetString("lblGridSizeWidth.AccessibleName")
        Me.lblGridSizeWidth.Anchor = CType(resources.GetObject("lblGridSizeWidth.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblGridSizeWidth.AutoSize = CType(resources.GetObject("lblGridSizeWidth.AutoSize"), Boolean)
        Me.lblGridSizeWidth.Dock = CType(resources.GetObject("lblGridSizeWidth.Dock"), System.Windows.Forms.DockStyle)
        Me.lblGridSizeWidth.Enabled = CType(resources.GetObject("lblGridSizeWidth.Enabled"), Boolean)
        Me.lblGridSizeWidth.Font = CType(resources.GetObject("lblGridSizeWidth.Font"), System.Drawing.Font)
        Me.lblGridSizeWidth.Image = CType(resources.GetObject("lblGridSizeWidth.Image"), System.Drawing.Image)
        Me.lblGridSizeWidth.ImageAlign = CType(resources.GetObject("lblGridSizeWidth.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblGridSizeWidth.ImageIndex = CType(resources.GetObject("lblGridSizeWidth.ImageIndex"), Integer)
        Me.lblGridSizeWidth.ImeMode = CType(resources.GetObject("lblGridSizeWidth.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblGridSizeWidth.Location = CType(resources.GetObject("lblGridSizeWidth.Location"), System.Drawing.Point)
        Me.lblGridSizeWidth.Name = "lblGridSizeWidth"
        Me.lblGridSizeWidth.RightToLeft = CType(resources.GetObject("lblGridSizeWidth.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblGridSizeWidth.Size = CType(resources.GetObject("lblGridSizeWidth.Size"), System.Drawing.Size)
        Me.lblGridSizeWidth.TabIndex = CType(resources.GetObject("lblGridSizeWidth.TabIndex"), Integer)
        Me.lblGridSizeWidth.Text = resources.GetString("lblGridSizeWidth.Text")
        Me.lblGridSizeWidth.TextAlign = CType(resources.GetObject("lblGridSizeWidth.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblGridSizeWidth.Visible = CType(resources.GetObject("lblGridSizeWidth.Visible"), Boolean)
        '
        'lblGridSizeHeight
        '
        Me.lblGridSizeHeight.AccessibleDescription = resources.GetString("lblGridSizeHeight.AccessibleDescription")
        Me.lblGridSizeHeight.AccessibleName = resources.GetString("lblGridSizeHeight.AccessibleName")
        Me.lblGridSizeHeight.Anchor = CType(resources.GetObject("lblGridSizeHeight.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblGridSizeHeight.AutoSize = CType(resources.GetObject("lblGridSizeHeight.AutoSize"), Boolean)
        Me.lblGridSizeHeight.Dock = CType(resources.GetObject("lblGridSizeHeight.Dock"), System.Windows.Forms.DockStyle)
        Me.lblGridSizeHeight.Enabled = CType(resources.GetObject("lblGridSizeHeight.Enabled"), Boolean)
        Me.lblGridSizeHeight.Font = CType(resources.GetObject("lblGridSizeHeight.Font"), System.Drawing.Font)
        Me.lblGridSizeHeight.Image = CType(resources.GetObject("lblGridSizeHeight.Image"), System.Drawing.Image)
        Me.lblGridSizeHeight.ImageAlign = CType(resources.GetObject("lblGridSizeHeight.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblGridSizeHeight.ImageIndex = CType(resources.GetObject("lblGridSizeHeight.ImageIndex"), Integer)
        Me.lblGridSizeHeight.ImeMode = CType(resources.GetObject("lblGridSizeHeight.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblGridSizeHeight.Location = CType(resources.GetObject("lblGridSizeHeight.Location"), System.Drawing.Point)
        Me.lblGridSizeHeight.Name = "lblGridSizeHeight"
        Me.lblGridSizeHeight.RightToLeft = CType(resources.GetObject("lblGridSizeHeight.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblGridSizeHeight.Size = CType(resources.GetObject("lblGridSizeHeight.Size"), System.Drawing.Size)
        Me.lblGridSizeHeight.TabIndex = CType(resources.GetObject("lblGridSizeHeight.TabIndex"), Integer)
        Me.lblGridSizeHeight.Text = resources.GetString("lblGridSizeHeight.Text")
        Me.lblGridSizeHeight.TextAlign = CType(resources.GetObject("lblGridSizeHeight.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblGridSizeHeight.Visible = CType(resources.GetObject("lblGridSizeHeight.Visible"), Boolean)
        '
        'cboStartupTable
        '
        Me.cboStartupTable.AccessibleDescription = resources.GetString("cboStartupTable.AccessibleDescription")
        Me.cboStartupTable.AccessibleName = resources.GetString("cboStartupTable.AccessibleName")
        Me.cboStartupTable.Anchor = CType(resources.GetObject("cboStartupTable.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboStartupTable.BackgroundImage = CType(resources.GetObject("cboStartupTable.BackgroundImage"), System.Drawing.Image)
        Me.cboStartupTable.Dock = CType(resources.GetObject("cboStartupTable.Dock"), System.Windows.Forms.DockStyle)
        Me.cboStartupTable.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboStartupTable.Enabled = CType(resources.GetObject("cboStartupTable.Enabled"), Boolean)
        Me.cboStartupTable.Font = CType(resources.GetObject("cboStartupTable.Font"), System.Drawing.Font)
        Me.cboStartupTable.ImeMode = CType(resources.GetObject("cboStartupTable.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboStartupTable.IntegralHeight = CType(resources.GetObject("cboStartupTable.IntegralHeight"), Boolean)
        Me.cboStartupTable.ItemHeight = CType(resources.GetObject("cboStartupTable.ItemHeight"), Integer)
        Me.cboStartupTable.Location = CType(resources.GetObject("cboStartupTable.Location"), System.Drawing.Point)
        Me.cboStartupTable.MaxDropDownItems = CType(resources.GetObject("cboStartupTable.MaxDropDownItems"), Integer)
        Me.cboStartupTable.MaxLength = CType(resources.GetObject("cboStartupTable.MaxLength"), Integer)
        Me.cboStartupTable.Name = "cboStartupTable"
        Me.cboStartupTable.RightToLeft = CType(resources.GetObject("cboStartupTable.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboStartupTable.Size = CType(resources.GetObject("cboStartupTable.Size"), System.Drawing.Size)
        Me.cboStartupTable.TabIndex = CType(resources.GetObject("cboStartupTable.TabIndex"), Integer)
        Me.cboStartupTable.Text = resources.GetString("cboStartupTable.Text")
        Me.cboStartupTable.Visible = CType(resources.GetObject("cboStartupTable.Visible"), Boolean)
        '
        'lblStartupTable
        '
        Me.lblStartupTable.AccessibleDescription = resources.GetString("lblStartupTable.AccessibleDescription")
        Me.lblStartupTable.AccessibleName = resources.GetString("lblStartupTable.AccessibleName")
        Me.lblStartupTable.Anchor = CType(resources.GetObject("lblStartupTable.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblStartupTable.AutoSize = CType(resources.GetObject("lblStartupTable.AutoSize"), Boolean)
        Me.lblStartupTable.Dock = CType(resources.GetObject("lblStartupTable.Dock"), System.Windows.Forms.DockStyle)
        Me.lblStartupTable.Enabled = CType(resources.GetObject("lblStartupTable.Enabled"), Boolean)
        Me.lblStartupTable.Font = CType(resources.GetObject("lblStartupTable.Font"), System.Drawing.Font)
        Me.lblStartupTable.Image = CType(resources.GetObject("lblStartupTable.Image"), System.Drawing.Image)
        Me.lblStartupTable.ImageAlign = CType(resources.GetObject("lblStartupTable.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblStartupTable.ImageIndex = CType(resources.GetObject("lblStartupTable.ImageIndex"), Integer)
        Me.lblStartupTable.ImeMode = CType(resources.GetObject("lblStartupTable.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblStartupTable.Location = CType(resources.GetObject("lblStartupTable.Location"), System.Drawing.Point)
        Me.lblStartupTable.Name = "lblStartupTable"
        Me.lblStartupTable.RightToLeft = CType(resources.GetObject("lblStartupTable.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblStartupTable.Size = CType(resources.GetObject("lblStartupTable.Size"), System.Drawing.Size)
        Me.lblStartupTable.TabIndex = CType(resources.GetObject("lblStartupTable.TabIndex"), Integer)
        Me.lblStartupTable.Text = resources.GetString("lblStartupTable.Text")
        Me.lblStartupTable.TextAlign = CType(resources.GetObject("lblStartupTable.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblStartupTable.Visible = CType(resources.GetObject("lblStartupTable.Visible"), Boolean)
        '
        'cboStartMode
        '
        Me.cboStartMode.AccessibleDescription = resources.GetString("cboStartMode.AccessibleDescription")
        Me.cboStartMode.AccessibleName = resources.GetString("cboStartMode.AccessibleName")
        Me.cboStartMode.Anchor = CType(resources.GetObject("cboStartMode.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboStartMode.BackgroundImage = CType(resources.GetObject("cboStartMode.BackgroundImage"), System.Drawing.Image)
        Me.cboStartMode.Dock = CType(resources.GetObject("cboStartMode.Dock"), System.Windows.Forms.DockStyle)
        Me.cboStartMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboStartMode.Enabled = CType(resources.GetObject("cboStartMode.Enabled"), Boolean)
        Me.cboStartMode.Font = CType(resources.GetObject("cboStartMode.Font"), System.Drawing.Font)
        Me.cboStartMode.ImeMode = CType(resources.GetObject("cboStartMode.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboStartMode.IntegralHeight = CType(resources.GetObject("cboStartMode.IntegralHeight"), Boolean)
        Me.cboStartMode.ItemHeight = CType(resources.GetObject("cboStartMode.ItemHeight"), Integer)
        Me.cboStartMode.Location = CType(resources.GetObject("cboStartMode.Location"), System.Drawing.Point)
        Me.cboStartMode.MaxDropDownItems = CType(resources.GetObject("cboStartMode.MaxDropDownItems"), Integer)
        Me.cboStartMode.MaxLength = CType(resources.GetObject("cboStartMode.MaxLength"), Integer)
        Me.cboStartMode.Name = "cboStartMode"
        Me.cboStartMode.RightToLeft = CType(resources.GetObject("cboStartMode.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboStartMode.Size = CType(resources.GetObject("cboStartMode.Size"), System.Drawing.Size)
        Me.cboStartMode.TabIndex = CType(resources.GetObject("cboStartMode.TabIndex"), Integer)
        Me.cboStartMode.Text = resources.GetString("cboStartMode.Text")
        Me.cboStartMode.Visible = CType(resources.GetObject("cboStartMode.Visible"), Boolean)
        '
        'lblStartMode
        '
        Me.lblStartMode.AccessibleDescription = resources.GetString("lblStartMode.AccessibleDescription")
        Me.lblStartMode.AccessibleName = resources.GetString("lblStartMode.AccessibleName")
        Me.lblStartMode.Anchor = CType(resources.GetObject("lblStartMode.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblStartMode.AutoSize = CType(resources.GetObject("lblStartMode.AutoSize"), Boolean)
        Me.lblStartMode.Dock = CType(resources.GetObject("lblStartMode.Dock"), System.Windows.Forms.DockStyle)
        Me.lblStartMode.Enabled = CType(resources.GetObject("lblStartMode.Enabled"), Boolean)
        Me.lblStartMode.Font = CType(resources.GetObject("lblStartMode.Font"), System.Drawing.Font)
        Me.lblStartMode.Image = CType(resources.GetObject("lblStartMode.Image"), System.Drawing.Image)
        Me.lblStartMode.ImageAlign = CType(resources.GetObject("lblStartMode.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblStartMode.ImageIndex = CType(resources.GetObject("lblStartMode.ImageIndex"), Integer)
        Me.lblStartMode.ImeMode = CType(resources.GetObject("lblStartMode.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblStartMode.Location = CType(resources.GetObject("lblStartMode.Location"), System.Drawing.Point)
        Me.lblStartMode.Name = "lblStartMode"
        Me.lblStartMode.RightToLeft = CType(resources.GetObject("lblStartMode.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblStartMode.Size = CType(resources.GetObject("lblStartMode.Size"), System.Drawing.Size)
        Me.lblStartMode.TabIndex = CType(resources.GetObject("lblStartMode.TabIndex"), Integer)
        Me.lblStartMode.Text = resources.GetString("lblStartMode.Text")
        Me.lblStartMode.TextAlign = CType(resources.GetObject("lblStartMode.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblStartMode.Visible = CType(resources.GetObject("lblStartMode.Visible"), Boolean)
        '
        'cboRightToLeft
        '
        Me.cboRightToLeft.AccessibleDescription = resources.GetString("cboRightToLeft.AccessibleDescription")
        Me.cboRightToLeft.AccessibleName = resources.GetString("cboRightToLeft.AccessibleName")
        Me.cboRightToLeft.Anchor = CType(resources.GetObject("cboRightToLeft.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.cboRightToLeft.BackgroundImage = CType(resources.GetObject("cboRightToLeft.BackgroundImage"), System.Drawing.Image)
        Me.cboRightToLeft.Dock = CType(resources.GetObject("cboRightToLeft.Dock"), System.Windows.Forms.DockStyle)
        Me.cboRightToLeft.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
        Me.cboRightToLeft.Enabled = CType(resources.GetObject("cboRightToLeft.Enabled"), Boolean)
        Me.cboRightToLeft.Font = CType(resources.GetObject("cboRightToLeft.Font"), System.Drawing.Font)
        Me.cboRightToLeft.ImeMode = CType(resources.GetObject("cboRightToLeft.ImeMode"), System.Windows.Forms.ImeMode)
        Me.cboRightToLeft.IntegralHeight = CType(resources.GetObject("cboRightToLeft.IntegralHeight"), Boolean)
        Me.cboRightToLeft.ItemHeight = CType(resources.GetObject("cboRightToLeft.ItemHeight"), Integer)
        Me.cboRightToLeft.Location = CType(resources.GetObject("cboRightToLeft.Location"), System.Drawing.Point)
        Me.cboRightToLeft.MaxDropDownItems = CType(resources.GetObject("cboRightToLeft.MaxDropDownItems"), Integer)
        Me.cboRightToLeft.MaxLength = CType(resources.GetObject("cboRightToLeft.MaxLength"), Integer)
        Me.cboRightToLeft.Name = "cboRightToLeft"
        Me.cboRightToLeft.RightToLeft = CType(resources.GetObject("cboRightToLeft.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.cboRightToLeft.Size = CType(resources.GetObject("cboRightToLeft.Size"), System.Drawing.Size)
        Me.cboRightToLeft.TabIndex = CType(resources.GetObject("cboRightToLeft.TabIndex"), Integer)
        Me.cboRightToLeft.Text = resources.GetString("cboRightToLeft.Text")
        Me.cboRightToLeft.Visible = CType(resources.GetObject("cboRightToLeft.Visible"), Boolean)
        '
        'lblRightToLeft
        '
        Me.lblRightToLeft.AccessibleDescription = resources.GetString("lblRightToLeft.AccessibleDescription")
        Me.lblRightToLeft.AccessibleName = resources.GetString("lblRightToLeft.AccessibleName")
        Me.lblRightToLeft.Anchor = CType(resources.GetObject("lblRightToLeft.Anchor"), System.Windows.Forms.AnchorStyles)
        Me.lblRightToLeft.AutoSize = CType(resources.GetObject("lblRightToLeft.AutoSize"), Boolean)
        Me.lblRightToLeft.Dock = CType(resources.GetObject("lblRightToLeft.Dock"), System.Windows.Forms.DockStyle)
        Me.lblRightToLeft.Enabled = CType(resources.GetObject("lblRightToLeft.Enabled"), Boolean)
        Me.lblRightToLeft.Font = CType(resources.GetObject("lblRightToLeft.Font"), System.Drawing.Font)
        Me.lblRightToLeft.Image = CType(resources.GetObject("lblRightToLeft.Image"), System.Drawing.Image)
        Me.lblRightToLeft.ImageAlign = CType(resources.GetObject("lblRightToLeft.ImageAlign"), System.Drawing.ContentAlignment)
        Me.lblRightToLeft.ImageIndex = CType(resources.GetObject("lblRightToLeft.ImageIndex"), Integer)
        Me.lblRightToLeft.ImeMode = CType(resources.GetObject("lblRightToLeft.ImeMode"), System.Windows.Forms.ImeMode)
        Me.lblRightToLeft.Location = CType(resources.GetObject("lblRightToLeft.Location"), System.Drawing.Point)
        Me.lblRightToLeft.Name = "lblRightToLeft"
        Me.lblRightToLeft.RightToLeft = CType(resources.GetObject("lblRightToLeft.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.lblRightToLeft.Size = CType(resources.GetObject("lblRightToLeft.Size"), System.Drawing.Size)
        Me.lblRightToLeft.TabIndex = CType(resources.GetObject("lblRightToLeft.TabIndex"), Integer)
        Me.lblRightToLeft.Text = resources.GetString("lblRightToLeft.Text")
        Me.lblRightToLeft.TextAlign = CType(resources.GetObject("lblRightToLeft.TextAlign"), System.Drawing.ContentAlignment)
        Me.lblRightToLeft.Visible = CType(resources.GetObject("lblRightToLeft.Visible"), Boolean)
        '
        'UPresentation
        '
        Me.AccessibleDescription = resources.GetString("$this.AccessibleDescription")
        Me.AccessibleName = resources.GetString("$this.AccessibleName")
        Me.AutoScroll = CType(resources.GetObject("$this.AutoScroll"), Boolean)
        Me.AutoScrollMargin = CType(resources.GetObject("$this.AutoScrollMargin"), System.Drawing.Size)
        Me.AutoScrollMinSize = CType(resources.GetObject("$this.AutoScrollMinSize"), System.Drawing.Size)
        Me.BackgroundImage = CType(resources.GetObject("$this.BackgroundImage"), System.Drawing.Image)
        Me.Controls.Add(Me.cboRightToLeft)
        Me.Controls.Add(Me.lblRightToLeft)
        Me.Controls.Add(Me.cboStartMode)
        Me.Controls.Add(Me.lblStartMode)
        Me.Controls.Add(Me.cboStartupTable)
        Me.Controls.Add(Me.lblStartupTable)
        Me.Controls.Add(Me.gbDesign)
        Me.Enabled = CType(resources.GetObject("$this.Enabled"), Boolean)
        Me.Font = CType(resources.GetObject("$this.Font"), System.Drawing.Font)
        Me.ImeMode = CType(resources.GetObject("$this.ImeMode"), System.Windows.Forms.ImeMode)
        Me.Location = CType(resources.GetObject("$this.Location"), System.Drawing.Point)
        Me.Name = "UPresentation"
        Me.RightToLeft = CType(resources.GetObject("$this.RightToLeft"), System.Windows.Forms.RightToLeft)
        Me.Size = CType(resources.GetObject("$this.Size"), System.Drawing.Size)
        Me.gbDesign.ResumeLayout(False)
        CType(Me.nudGridSizeWidth, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.nudGridSizeHeight, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub

#End Region

    Private pageSettings As Printing.PageSettings

    Public Event ValueChanged As EventHandler

    Private Sub UPresentation_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AddHandler cboStartupTable.SelectionChangeCommitted, AddressOf OnValueChanged
        AddHandler cboStartMode.SelectionChangeCommitted, AddressOf OnValueChanged
        AddHandler cboRightToLeft.SelectionChangeCommitted, AddressOf OnValueChanged

        AddHandler nudGridSizeHeight.ValueChanged, AddressOf OnValueChanged : AddHandler nudGridSizeHeight.TextChanged, AddressOf OnValueChanged
        AddHandler nudGridSizeWidth.ValueChanged, AddressOf OnValueChanged : AddHandler nudGridSizeWidth.TextChanged, AddressOf OnValueChanged
        AddHandler chkDisplayGrid.CheckedChanged, AddressOf OnValueChanged
        AddHandler chkDisplayRulers.CheckedChanged, AddressOf OnValueChanged
        AddHandler chkLocked.CheckedChanged, AddressOf OnValueChanged
        AddHandler chkSnapToGrid.CheckedChanged, AddressOf OnValueChanged
    End Sub

    Protected Sub OnValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
        RaiseEvent ValueChanged(Me, New EventArgs)
    End Sub

    Public Sub Prepare()
        cboStartMode.Items.Clear()
        cboStartMode.Items.Add(Model10.StartMode.Undefined)
        cboStartMode.Items.Add(Model10.StartMode.Print)
        cboStartMode.Items.Add(Model10.StartMode.Preview)
        cboStartMode.Items.Add(Model10.StartMode.Form)
        cboStartMode.Items.Add(Model10.StartMode.DataSheet)
        '-------------------
        cboRightToLeft.Items.Clear()
        cboRightToLeft.Items.Add(RightToLeft.No)
        cboRightToLeft.Items.Add(RightToLeft.Yes)
        cboRightToLeft.Items.Add(RightToLeft.Inherit)
    End Sub

    Public Sub Read(ByVal presentation As Model10.Presentation)
        cboStartupTable.Items.Clear()
        cboStartupTable.Items.Add("<None>")

        Dim tbl As Model10.Table
        For Each tbl In presentation.Tables
            cboStartupTable.Items.Add(tbl)
        Next : tbl = Nothing
        '-------------------
        If presentation.StartupTable Is Nothing Then
            cboStartupTable.SelectedItem = "<None>"
        Else
            cboStartupTable.SelectedItem = presentation.StartupTable
        End If
        cboStartMode.SelectedItem = presentation.StartMode
        cboRightToLeft.SelectedItem = presentation.RightToLeft

        nudGridSizeHeight.Value = presentation.GridSize.Height
        nudGridSizeWidth.Value = presentation.GridSize.Width
        chkDisplayGrid.Checked = presentation.DisplayGrid
        chkDisplayRulers.Checked = presentation.DisplayRulers
        chkLocked.Checked = presentation.Locked
        chkSnapToGrid.Checked = presentation.SnapToGrid
    End Sub
    Public Sub Write(ByVal presentation As Model10.Presentation)
        If cboStartupTable.SelectedItem Is "<None>" Then
            presentation.StartupTable = Nothing
        Else
            presentation.StartupTable = CType(cboStartupTable.SelectedItem, Model10.Table)
        End If
        presentation.StartMode = CType(cboStartMode.SelectedItem, Model10.StartMode)
        presentation.RightToLeft = CType(cboRightToLeft.SelectedItem, RightToLeft)

        presentation.GridSize = New Size(CInt(nudGridSizeWidth.Value), CInt(nudGridSizeHeight.Value))
        presentation.DisplayGrid = chkDisplayGrid.Checked
        presentation.DisplayRulers = chkDisplayRulers.Checked
        presentation.Locked = chkLocked.Checked
        presentation.SnapToGrid = chkSnapToGrid.Checked
    End Sub
End Class